import type { PaginationQuery, Data, AsyncDataResult } from './types'

export default interface IEntity {
  save(data: Data): AsyncDataResult
  update(data: any): AsyncDataResult
  drop(id: string): AsyncDataResult<string>
  page(pager: PaginationQuery): AsyncDataResult
}